<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Rect类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="class_rect-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Rect类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>矩形  
 <a href="class_rect.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_math_8h_source.html">Math.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2ccad9ce15ee46a8957448a0bafbb8e9"><td class="memItemLeft" align="right" valign="top"><a id="a2ccad9ce15ee46a8957448a0bafbb8e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (float x, float y, float width, float height)</td></tr>
<tr class="separator:a2ccad9ce15ee46a8957448a0bafbb8e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2dea0c9cf14e0a12833ceb03a6dfb7f"><td class="memItemLeft" align="right" valign="top"><a id="aa2dea0c9cf14e0a12833ceb03a6dfb7f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (float x, float y, const <a class="el" href="class_size.html">Size</a> &amp;size)</td></tr>
<tr class="separator:aa2dea0c9cf14e0a12833ceb03a6dfb7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bf97eb0df8aea5b0a47d7e4e30c2357"><td class="memItemLeft" align="right" valign="top"><a id="a3bf97eb0df8aea5b0a47d7e4e30c2357"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (<a class="el" href="class_vector2.html">Vector2</a> pos, const <a class="el" href="class_size.html">Size</a> &amp;size)</td></tr>
<tr class="separator:a3bf97eb0df8aea5b0a47d7e4e30c2357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39a316827fc3652d2bdc5b9c8a9f3605"><td class="memItemLeft" align="right" valign="top"><a id="a39a316827fc3652d2bdc5b9c8a9f3605"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (const <a class="el" href="class_rect.html">Rect</a> &amp;rect)</td></tr>
<tr class="separator:a39a316827fc3652d2bdc5b9c8a9f3605"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f8b71b03fef7d24b5b6122d0804f152"><td class="memItemLeft" align="right" valign="top"><a id="a2f8b71b03fef7d24b5b6122d0804f152"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;dt)</td></tr>
<tr class="separator:a2f8b71b03fef7d24b5b6122d0804f152"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ca2c38948cac328b70406823b64e6a4"><td class="memItemLeft" align="right" valign="top"><a id="a9ca2c38948cac328b70406823b64e6a4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> (float x_dt, float y_dt)</td></tr>
<tr class="separator:a9ca2c38948cac328b70406823b64e6a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad051d4a0790e22d92bb84e4819107534"><td class="memItemLeft" align="right" valign="top"><a id="ad051d4a0790e22d92bb84e4819107534"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>moveTo</b> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos)</td></tr>
<tr class="separator:ad051d4a0790e22d92bb84e4819107534"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b53f48abf14933c20d4642ec9ac429b"><td class="memItemLeft" align="right" valign="top"><a id="a3b53f48abf14933c20d4642ec9ac429b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>moveTo</b> (float pos_x, float pos_y)</td></tr>
<tr class="separator:a3b53f48abf14933c20d4642ec9ac429b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a292446e318ee86d91ad3001f1ffdc123"><td class="memItemLeft" align="right" valign="top"><a id="a292446e318ee86d91ad3001f1ffdc123"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>pointOnRect</b> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;point) const</td></tr>
<tr class="separator:a292446e318ee86d91ad3001f1ffdc123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8e05d9f129a90587c4265b479ebf164"><td class="memItemLeft" align="right" valign="top"><a id="af8e05d9f129a90587c4265b479ebf164"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>intersectWithLine</b> (const <a class="el" href="class_line.html">Line</a> &amp;line) const</td></tr>
<tr class="separator:af8e05d9f129a90587c4265b479ebf164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab289d607356f23b484c9fd26a79f2133"><td class="memItemLeft" align="right" valign="top"><a id="ab289d607356f23b484c9fd26a79f2133"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>intersectsWithRect</b> (const <a class="el" href="class_rect.html">Rect</a> &amp;rect) const</td></tr>
<tr class="separator:ab289d607356f23b484c9fd26a79f2133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a908cbfb03bf4ddb9a4791607d7b4d1d9"><td class="memItemLeft" align="right" valign="top"><a id="a908cbfb03bf4ddb9a4791607d7b4d1d9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_rect.html">Rect</a> &amp;r)</td></tr>
<tr class="separator:a908cbfb03bf4ddb9a4791607d7b4d1d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a185f8e02d1f1c4de51ea1af958bf1dc7"><td class="memItemLeft" align="right" valign="top"><a id="a185f8e02d1f1c4de51ea1af958bf1dc7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator D2D1_RECT_F</b> ()</td></tr>
<tr class="separator:a185f8e02d1f1c4de51ea1af958bf1dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a997eb36f3e6c8c4428839a1550f2e4e1"><td class="memItemLeft" align="right" valign="top"><a id="a997eb36f3e6c8c4428839a1550f2e4e1"></a>
<a class="el" href="class_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
<tr class="separator:a997eb36f3e6c8c4428839a1550f2e4e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f6141ded93029d4cea29c5276384bd"><td class="memItemLeft" align="right" valign="top"><a id="ab4f6141ded93029d4cea29c5276384bd"></a>
<a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>origin</b></td></tr>
<tr class="separator:ab4f6141ded93029d4cea29c5276384bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a1362e6ad07edaac5085a5f6ccec490f0"><td class="memItemLeft" align="right" valign="top"><a id="a1362e6ad07edaac5085a5f6ccec490f0"></a>
static <a class="el" href="class_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Zero</b></td></tr>
<tr class="separator:a1362e6ad07edaac5085a5f6ccec490f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>矩形 </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/base/<a class="el" href="_math_8h_source.html">Math.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
